# This contains seed data to load for the system. :defaults is run for each
# environment and test loads lots of data that previously was in fixtures.

Bootstrapper.for :defaults do |b|
  b.truncate_tables :locations, :users, :item_attribute_sets, :item_attributes, 
                    :item_attribute_values, :item_types
  require 'db/seeds'
end

Bootstrapper.for :production do |b|
  b.run :defaults
end

Bootstrapper.for :development do |b|
  b.run :defaults
  b.run :locations
end

Bootstrapper.for :test do |b|
  b.run :development
end

# Locations data
Bootstrapper.for :locations do |b|
  require 'db/locations'
end
